package com.ddstation.onsitelaw.mapper;

import com.ddstation.onsitelaw.entity.AccountSaveEntity;
import com.ddstation.onsitelaw.entity.AccountSaveInstitutionEntity;
import com.ddstation.onsitelaw.entity.DtInvsManageInstitutionEntity;
import com.ddstation.onsitelaw.entity.DtSupervisorEnforcementEntity;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author 忆秋枫
 */
public interface DtSupervisorEnforcementMapper extends Mapper<DtSupervisorEnforcementEntity> {

    /**
     * 根据用户ID获取信息集合
     * @param supervisorId
     * @return List<DtSupervisorEnforcementEntity> 对象信息集合
     */
    List<DtSupervisorEnforcementEntity> selectListBySupervisorId(Integer supervisorId);

    /**
     * 根据用户ID获取信息集合(更多信息)
     * @param supervisorId
     * @return List<Map<String,Object>> 对象信息集合
     */
    List<Map<String,Object>> selectMoreBySupervisorId(Integer supervisorId);

    /**
     * 保存信息集合
     * @param saveEntity 对象信息集合
     */
    void saveEnforcement(AccountSaveEntity saveEntity);

    /**
     * 删除账号全部权限机构
     * @param supervisorId 账号ID
     */
    void deleteEnforcement(Integer supervisorId);




}